import Vue from 'vue'
import Router from 'vue-router'
import index from '@/view/index'
import error from '@/view/error'
import login from '@/view/register-password/login'
import passwordChange from '@/view/register-password/passwordChange'
import passwordFind from '@/view/register-password/passwordFind'
import register from '@/view/register-password/register'
import registerProtocol from '@/view/register-password/registerProtocol'
// 我的
import accountSwitch from '@/view/levelTwoAccount/accountSwitch'
import accountTidings from '@/view/levelTwoAccount/accountTidings'
import accountShare from '@/view/levelTwoAccount/accountShare'
import accountAboutUs from '@/view/levelTwoAccount/accountAboutUs'
import accountInfo from '@/view/levelTwoAccount/accountInfo'
import accountFeedback from '@/view/levelTwoAccount/accountFeedback'
// 我的三级页面
import question01 from '@/view/levelThreeQuestion/question01'
// 用水
import waterCharge from '@/view/levelTwoWater/waterCharge'
import waterPayment02 from '@/view/levelTwoWater/waterPayment02'
import waterRemainder from '@/view/levelTwoWater/waterRemainder'
import waterReport from '@/view/levelTwoWater/waterReport'
import paymentHistory from '@/view/levelTwoWater/paymentHistory'
import paymentDetail from '@/view/levelTwoWater/paymentDetail'
import terminalData from '@/view/levelTwoWater/terminalData'
import terminalDataEcharts from '../view/levelTwoWater/terminalDataEcharts'
// 服务
import accountBinding from '@/view/levelTwoService/accountBinding'
import accountBinding02 from '@/view/levelTwoService/accountBinding02'
import accountQuestion from '@/view/levelTwoService/accountQuestion'
import serviceNotice from '@/view/levelTwoService/serviceNotice'
import serviceRecord from '@/view/levelTwoService/serviceRecord'
import serviceTidings from '@/view/levelTwoService/serviceTidings'
//微信
import weChatRegister from '../view/register-password/weChatRegister'

Vue.use(Router);

const router = new Router({
    routes: [
        {
            path: '/index',
            name: 'index',
            component: index
        },
        {
            path: '/',
            name: 'login',
            component: login
        },
        {
            path: '/passwordChange',
            name: 'passwordChange',
            component: passwordChange
        },
        {
            path: '/passwordFind',
            name: 'passwordFind',
            component: passwordFind
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/registerProtocol',
            name: 'registerProtocol',
            component: registerProtocol
        },
        {
            path: '/accountBinding',
            name: 'accountBinding',
            component: accountBinding
        },
        {
            path: '/accountBinding02',
            name: 'accountBinding02',
            component: accountBinding02
        },
        {
            path: '/accountSwitch',
            name: 'accountSwitch',
            component: accountSwitch
        },
        {
            path: '/accountTidings',
            name: 'accountTidings',
            component: accountTidings
        },
        {
            path: '/accountShare',
            name: 'accountShare',
            component: accountShare
        },
        {
            path: '/accountQuestion',
            name: 'accountQuestion',
            component: accountQuestion
        },
        {
            path: '/accountAboutUs',
            name: 'accountAboutUs',
            component: accountAboutUs
        },
        {
            path: '/accountInfo',
            name: 'accountInfo',
            component: accountInfo
        },
        {
            path: '/accountFeedback',
            name: 'accountFeedback',
            component: accountFeedback
        },
        {
            path: '/question01',
            name: 'question01',
            component: question01
        },
        {
            path: '/waterCharge',
            name: 'waterCharge',
            component: waterCharge
        },
        {
            path: '/waterPayment02',
            name: 'waterPayment02',
            component: waterPayment02
        },
        {
            path: '/waterRemainder',
            name: 'waterRemainder',
            component: waterRemainder
        },
        {
            path: '/waterReport',
            name: 'waterReport',
            component: waterReport
        },
        {
            path: '/paymentHistory',
            name: 'paymentHistory',
            component: paymentHistory
        },
        {
            path: '/paymentDetail',
            name: 'paymentDetail',
            component: paymentDetail
        },
        {
          path: '/terminalData',
            name : 'terminalData',
            component: terminalData
        },
        {
            path: '/serviceNotice',
            name: 'serviceNotice',
            component: serviceNotice
        },
        {
            path: '/serviceRecord',
            name: 'serviceRecord',
            component: serviceRecord
        },
        {
            path: '/serviceTidings',
            name: 'serviceTidings',
            component: serviceTidings
        },
        {
            path: '/weChatRegister',
            name: 'weChatRegister',
            component: weChatRegister
        },
        {
            path: '/error',
            name: 'error',
            component: error
        },
        {
            path: '/terminalDataEcharts',
            name: 'terminalDataEcharts',
            component: terminalDataEcharts
        }
    ]
});
export default router;
